package entities;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the Propietary_organisateur database table.
 * 
 */
@Embeddable
public class Propietary_organisateurPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="Propietary_boss")
	private String propietary_boss;

	@Column(name="Adminstrator_admin")
	private String adminstrator_admin;

    public Propietary_organisateurPK() {
    }
	public String getPropietary_boss() {
		return this.propietary_boss;
	}
	public void setPropietary_boss(String propietary_boss) {
		this.propietary_boss = propietary_boss;
	}
	public String getAdminstrator_admin() {
		return this.adminstrator_admin;
	}
	public void setAdminstrator_admin(String adminstrator_admin) {
		this.adminstrator_admin = adminstrator_admin;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof Propietary_organisateurPK)) {
			return false;
		}
		Propietary_organisateurPK castOther = (Propietary_organisateurPK)other;
		return 
			this.propietary_boss.equals(castOther.propietary_boss)
			&& this.adminstrator_admin.equals(castOther.adminstrator_admin);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.propietary_boss.hashCode();
		hash = hash * prime + this.adminstrator_admin.hashCode();
		
		return hash;
    }
}